package Java多线程技术.第3章.一生产多消费;

public class C2 {

    private MyStack2 myStack2;

    public C2(MyStack2 myStack2) {
        this.myStack2 = myStack2;
    }


    public void popService(){
        System.out.println(myStack2.pop());

    }
}
